package com.pgybook.db.entity.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InformationEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InformationEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInformationidIsNull() {
            addCriterion("INFORMATIONID is null");
            return (Criteria) this;
        }

        public Criteria andInformationidIsNotNull() {
            addCriterion("INFORMATIONID is not null");
            return (Criteria) this;
        }

        public Criteria andInformationidEqualTo(Long value) {
            addCriterion("INFORMATIONID =", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidNotEqualTo(Long value) {
            addCriterion("INFORMATIONID <>", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidGreaterThan(Long value) {
            addCriterion("INFORMATIONID >", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidGreaterThanOrEqualTo(Long value) {
            addCriterion("INFORMATIONID >=", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidLessThan(Long value) {
            addCriterion("INFORMATIONID <", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidLessThanOrEqualTo(Long value) {
            addCriterion("INFORMATIONID <=", value, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidIn(List<Long> values) {
            addCriterion("INFORMATIONID in", values, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidNotIn(List<Long> values) {
            addCriterion("INFORMATIONID not in", values, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidBetween(Long value1, Long value2) {
            addCriterion("INFORMATIONID between", value1, value2, "informationid");
            return (Criteria) this;
        }

        public Criteria andInformationidNotBetween(Long value1, Long value2) {
            addCriterion("INFORMATIONID not between", value1, value2, "informationid");
            return (Criteria) this;
        }

        public Criteria andInfotypeIsNull() {
            addCriterion("INFOTYPE is null");
            return (Criteria) this;
        }

        public Criteria andInfotypeIsNotNull() {
            addCriterion("INFOTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andInfotypeEqualTo(Integer value) {
            addCriterion("INFOTYPE =", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeNotEqualTo(Integer value) {
            addCriterion("INFOTYPE <>", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeGreaterThan(Integer value) {
            addCriterion("INFOTYPE >", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("INFOTYPE >=", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeLessThan(Integer value) {
            addCriterion("INFOTYPE <", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeLessThanOrEqualTo(Integer value) {
            addCriterion("INFOTYPE <=", value, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeIn(List<Integer> values) {
            addCriterion("INFOTYPE in", values, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeNotIn(List<Integer> values) {
            addCriterion("INFOTYPE not in", values, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeBetween(Integer value1, Integer value2) {
            addCriterion("INFOTYPE between", value1, value2, "infotype");
            return (Criteria) this;
        }

        public Criteria andInfotypeNotBetween(Integer value1, Integer value2) {
            addCriterion("INFOTYPE not between", value1, value2, "infotype");
            return (Criteria) this;
        }

        public Criteria andContenttypeIsNull() {
            addCriterion("CONTENTTYPE is null");
            return (Criteria) this;
        }

        public Criteria andContenttypeIsNotNull() {
            addCriterion("CONTENTTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andContenttypeEqualTo(Integer value) {
            addCriterion("CONTENTTYPE =", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeNotEqualTo(Integer value) {
            addCriterion("CONTENTTYPE <>", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeGreaterThan(Integer value) {
            addCriterion("CONTENTTYPE >", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("CONTENTTYPE >=", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeLessThan(Integer value) {
            addCriterion("CONTENTTYPE <", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeLessThanOrEqualTo(Integer value) {
            addCriterion("CONTENTTYPE <=", value, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeIn(List<Integer> values) {
            addCriterion("CONTENTTYPE in", values, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeNotIn(List<Integer> values) {
            addCriterion("CONTENTTYPE not in", values, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeBetween(Integer value1, Integer value2) {
            addCriterion("CONTENTTYPE between", value1, value2, "contenttype");
            return (Criteria) this;
        }

        public Criteria andContenttypeNotBetween(Integer value1, Integer value2) {
            addCriterion("CONTENTTYPE not between", value1, value2, "contenttype");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("TITLE is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("TITLE is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("TITLE =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("TITLE <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("TITLE >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("TITLE >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("TITLE <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("TITLE <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("TITLE like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("TITLE not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("TITLE in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("TITLE not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("TITLE between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("TITLE not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidIsNull() {
            addCriterion("CRTSTAFFID is null");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidIsNotNull() {
            addCriterion("CRTSTAFFID is not null");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidEqualTo(Integer value) {
            addCriterion("CRTSTAFFID =", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidNotEqualTo(Integer value) {
            addCriterion("CRTSTAFFID <>", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidGreaterThan(Integer value) {
            addCriterion("CRTSTAFFID >", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CRTSTAFFID >=", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidLessThan(Integer value) {
            addCriterion("CRTSTAFFID <", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidLessThanOrEqualTo(Integer value) {
            addCriterion("CRTSTAFFID <=", value, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidIn(List<Integer> values) {
            addCriterion("CRTSTAFFID in", values, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidNotIn(List<Integer> values) {
            addCriterion("CRTSTAFFID not in", values, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidBetween(Integer value1, Integer value2) {
            addCriterion("CRTSTAFFID between", value1, value2, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andCrtstaffidNotBetween(Integer value1, Integer value2) {
            addCriterion("CRTSTAFFID not between", value1, value2, "crtstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidIsNull() {
            addCriterion("UPTSTAFFID is null");
            return (Criteria) this;
        }

        public Criteria andUptstaffidIsNotNull() {
            addCriterion("UPTSTAFFID is not null");
            return (Criteria) this;
        }

        public Criteria andUptstaffidEqualTo(Integer value) {
            addCriterion("UPTSTAFFID =", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidNotEqualTo(Integer value) {
            addCriterion("UPTSTAFFID <>", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidGreaterThan(Integer value) {
            addCriterion("UPTSTAFFID >", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidGreaterThanOrEqualTo(Integer value) {
            addCriterion("UPTSTAFFID >=", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidLessThan(Integer value) {
            addCriterion("UPTSTAFFID <", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidLessThanOrEqualTo(Integer value) {
            addCriterion("UPTSTAFFID <=", value, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidIn(List<Integer> values) {
            addCriterion("UPTSTAFFID in", values, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidNotIn(List<Integer> values) {
            addCriterion("UPTSTAFFID not in", values, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidBetween(Integer value1, Integer value2) {
            addCriterion("UPTSTAFFID between", value1, value2, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUptstaffidNotBetween(Integer value1, Integer value2) {
            addCriterion("UPTSTAFFID not between", value1, value2, "uptstaffid");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNull() {
            addCriterion("UPDTIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNotNull() {
            addCriterion("UPDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeEqualTo(Date value) {
            addCriterion("UPDTIME =", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotEqualTo(Date value) {
            addCriterion("UPDTIME <>", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThan(Date value) {
            addCriterion("UPDTIME >", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDTIME >=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThan(Date value) {
            addCriterion("UPDTIME <", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDTIME <=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIn(List<Date> values) {
            addCriterion("UPDTIME in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotIn(List<Date> values) {
            addCriterion("UPDTIME not in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeBetween(Date value1, Date value2) {
            addCriterion("UPDTIME between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDTIME not between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}